package com.lx.dao;


import com.lx.entity.Order_Old;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OrderDao_Old {

    List<Order_Old> selectAll();
    List<Order_Old> selectByPage(Map<String, Object> params);
    int totalCount(Map<String, Object> params);
    Order_Old selectById(int id);

    // 新增订单相关方法
    int addOrder(Order_Old order);
    int addOrderDetail(Map<String, Object> orderDetail);
    Map<String, Object> getProductById(int productId);

    int updateOrder(Order_Old order);
    int delOrder(int id);
    int delOrderDetailByOrderId(int orderId); // 删除订单详情

}
